package com.ctrip.ec.api.mobile.model;

import com.ctrip.ec.biz.entity.goods.GoodsEntity;
import com.ctrip.ec.biz.entity.goods.GoodsImageEntity;
import com.ctrip.ec.biz.entity.goods.GoodsSpecEntity;

import java.util.List;

/**
 * Created by jiangzy on 2018/9/18.
 */
public class GoodsModel extends  GoodsEntity {

    public  GoodsModel(){ }
    public  GoodsModel(GoodsEntity entity){
        for(String col : entity.property().getColumns()){
            this.fieldValue(col,entity.fieldValue(col));
        }
    }

    private  List<GoodsSpecEntity> specList;
    private  List<GoodsImageEntity> imageList;
    private  Boolean canBuy;

    public Boolean getCanBuy() {
        return canBuy;
    }

    public void setCanBuy(Boolean canBuy) {
        this.canBuy = canBuy;
    }

    public List<GoodsSpecEntity> getSpecList() {
        return specList;
    }

    public void setSpecList(List<GoodsSpecEntity> specList) {
        this.specList = specList;
    }

    public List<GoodsImageEntity> getImageList() {
        return imageList;
    }

    public void setImageList(List<GoodsImageEntity> imageList) {
        this.imageList = imageList;
    }
}